package com.MovieManageSystem.controller;

import com.MovieManageSystem.entity.Result;
import com.MovieManageSystem.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/test")
@CrossOrigin(origins = "*")
public class TestController {

    @Autowired
    private TestService testService;

    @DeleteMapping("/{id}")
    public Result deleteById(@PathVariable Integer id){
        testService.deleteById(id);
        return Result.success();
    }
}
